﻿function EducationSkill(data) {
    this.Id = ko.observable(data.Id ? data.Id : 0);
    this.Created = ko.observable(data.Created ? data.Created : "");
    this.Updated = ko.observable(data.Updated ? data.Updated : "");
    this.Program = ko.observable(data.Program ? data.Program : "").extend({
        required: true,
        maxLength: 100
    });
    this.University = ko.observable(data.University ? data.University : "").extend({
        required: true,
        maxLength: 100
    });
    this.StartYear = ko.observable(data.StartYear ? data.StartYear : "").extend({
        required: true,
        number: true
    });
    this.EndYear = ko.observable(data.EndYear ? data.EndYear : "");
    this.EducationId = ko.observable(data.EducationId ? data.EducationId : 0).extend({
        required: true
    });
    this.EducationName = ko.observable(data.EducationName ? data.EducationName : "");
    this.errors = ko.validation.group(this);
    return;
}